﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Web;
using System.ServiceModel;

namespace BBECServiceBusAdapter
{
    [MessageContract(WrapperNamespace = Helper.Namespace)]
    public sealed class ConstituentDataMessage : IBBECServiceBusAdapterMessageContract
    {
        #region Message Headers

        private string callerID = "";
        private bool processSynchronously = false;

        [MessageHeader(MustUnderstand = true, Namespace = Helper.Namespace)]
        public string CallerID
        {
            get { return callerID; }
            set { callerID = value; }
        }

        [MessageHeader(MustUnderstand = true, Namespace = Helper.Namespace)]
        public bool ProcessSynchronously
        {
            get { return processSynchronously; }
            set { processSynchronously = value; }
        }

        #endregion

        #region Message Body Members

        [MessageBodyMember(Namespace = Helper.Namespace)]
        public ConstituentDataContract ConstituentData;


        #endregion
    }
}